package com.ctsi.security.manager.impl;

import com.ctsi.framework.common.startrun.ComponentFactory;
import com.ctsi.security.domain.DataObject;

import java.util.Map;


public class SecurityImpUtil {

	private volatile static SecurityImpl secImp;

	public static Map<String, DataObject> getMapFromDataObjectList(String userLoginId, String doTypeId, String action) {

		SecurityImpl security = (SecurityImpl) getSecIn();
		return security.getDataObject(userLoginId, doTypeId, action);

	}

	// 得到接口类
	public static SecurityImpl getSecIn() {
		if (secImp == null)
			secImp = (SecurityImpl) ComponentFactory.getBean("iSecurity");
		return secImp;
	}

}
